const pro_api_base: string = "/bimai-out-project-api/out-api/project"; // 项目根目录
const enter_api_base: string = "/bimai-out-enterprise-api/out-api/enterprise"; // 企业根目录
const szls_pai_base: string = '/bimai-out-szls-project-api/out-api/szls'// 数字孪生 根目录
const serviceApi = {
    // login: '/bimai-out-admin/out-admin/admin/login',

    // 字典查询
    dict_list: '/bimai-out-api/out-api/general/dict/dictData/list',
    // 系统
    upload: '/bimai-out-admin/out-admin/general/file/nomal/upload', // 上传
    download: '/bimai-out-admin/out-admin/general/file/nomal/download', // 普通下载
    getUserInfo: '/bimai-out-api/out-api/member/getInfo',
    all_enterprise_list: enter_api_base + '/enterprise/allList',// 加入和拥有的企业列表
    // 选择企业类型
    set_organization: enter_api_base + '/enterprise/setOrganization',
    router_list: '/bimai-out-api/out-api/authority/route/list',// 菜单路由   
    enterprise_role_list: "/bimai-out-api/out-api/authority/route/enterpriseRouteList", // 当前企业路由权限
    save_enterprise_route: '/bimai-out-api/out-api/authority/route/saveEnterpriseRoute',// 保存指定路由 （多组织开通）
    // 企业信息
    enterprise_info: enter_api_base + '/enterprise',
    // 企业级别
    enterprise_level_list: enter_api_base + '/enterprise/level/list',

    // 激活码
    cdk_user_num: '/bimai-out-api/out-api/account/cdk/getCdkAssignNum',
    cdk_list: '/bimai-out-api/out-api/account/cdk/list',
    cdk_list_assign: '/bimai-out-api/out-api/account/cdk/assignCdk', // 分配
    cdk_list_unbind: '/bimai-out-api/out-api/account/cdk/unBindCdk', // 解绑
    cdk_list_assignCdkBatch: '/bimai-out-api/out-api/account/cdk/assignCdkBatch', // 批量分配
    cdk_list_unBindCdkBatch: '/bimai-out-api/out-api/account/cdk/unBindCdkBatch', // 批量解绑

    cdk_price_list: '/bimai-out-enterprise-api/out-api/price/item/plugPrice', // 插件价格 列表
    create_cdk_order: '/bimai-out-api/out-api/account/itemOrder/createPlugItemOrder',
    deley_cdk_order: '/bimai-out-api/out-api/account/itemOrder/deferPlugItem',
    // submit_cdk_order: '/bimai-out-api/out-api/account/itemOrder/submitItemOrder',
    // pay_cdk_order: '/bimai-out-api/out-api/account/itemOrder/payItemOrder',
    // 大样图 and 图框
    upload_drawing: '/bimai-out-api/out-api/drawing/file/upload/drawing', // 大样图上传 
    download_drawing: '/bimai-out-api/out-api/drawing/download', // 预览图图下载
    drawingType_list: '/bimai-out-api/out-api/drawingType/list', // 类型列表
    drawingType_curd: '/bimai-out-api/out-api/drawingType',
    drawing_list: '/bimai-out-api/out-api/drawing/list',
    drawing_curd: '/bimai-out-api/out-api/drawing',
    drawing_moveUpSort: '/bimai-out-api/out-api/drawing/moveUpSort', // 上移
    drawing_moveDownSort: '/bimai-out-api/out-api/drawing/moveDownSort', // 上移
    // 日志
    log_list: '/bimai-out-enterprise-api/out-api/logs/log/loginLogPage',
    operate_list: '/bimai-out-enterprise-api/out-api/logs/log/operateLogPage',
    // 购买服务项目 组织管理 。。。
    uploadSlip: enter_api_base + '/enterpriseLevelUp/uploadSlip',
    downloadSlip: enter_api_base + '/enterpriseLevelUp/downloadSlip',

    // 创建  提交 支付
    create_itemOrder: '/bimai-out-api/out-api/account/itemOrder',
    submit_itemOrder: '/bimai-out-api/out-api/account/itemOrder/submitItemOrder',
    pay_itemOrder: '/bimai-out-api/out-api/account/itemOrder/payItemOrder',
    // 模块启用配置
    price_item_list: '/bimai-out-enterprise-api/out-api/price/item/list',
    // 模块信息详情
    account_item_itemInfo: '/bimai-out-api/out-api/account/item/itemInfo',
    // 充值套餐 and 详情
    rechargePackage_list: '/bimai-out-enterprise-api/out-api/price/rechargePackage/page',
    rechargePackage_curd: '/bimai-out-enterprise-api/out-api/price/rechargePackage',

    // 收款方
    collection_info: '/bimai-out-api/out-api/account/collection/list',
    getBalance_info: '/bimai-out-api/out-api/account/balance/getBalanceInfo',
    // 充值
    rechargeOrder_create: '/bimai-out-api/out-api/account/rechargeOrder/create',
    rechargeOrder_submit: '/bimai-out-api/out-api/account/rechargeOrder/submit',
    rachargeOrder_list: '/bimai-out-api/out-api/account/rechargeOrder/rechargeDetails',
    // 消费记录
    payOrder_list: '/bimai-out-api/out-api/pay/payOrder/enterprisePage',
    productItemList: '/bimai-out-api/out-api/general/product/productItemList',
    // 角色 
    role_list: '/bimai-out-api/out-api/authority/role/page',
    role_crud: '/bimai-out-api/out-api/authority/role', // 增删改查 同一个
    role_disable: '/bimai-out-api/out-api/authority/role/disable', // 停用
    role_enable: '/bimai-out-api/out-api/authority/role/enable', // 启用

    // 组织
    organization_list: enter_api_base + '/organization/list',
    organization_crud: enter_api_base + '/organization',

    // 账号
    user_list: enter_api_base + '/member/admin/page',
    user_crud: enter_api_base + '/member',
    get_memberInfoByPhone: enter_api_base + '/member/info/byPhone', // 查询改手机号的用户信息（多组织）
    // 邀请
    send_invitation: enter_api_base + '/member/sendLink', // 获取邀请链接带参数
    invitation_list: enter_api_base + '/member/enterpriseMember/record/page', // 受邀 同意或拒绝 列表
    exam_invitation: enter_api_base + '/member/agreeInvite/review', // 审核 受邀请加入的账户
    refuse_invitation: enter_api_base + '/member/agreeInvite/refuse', // 审核拒绝

    // 部门
    depart_list: enter_api_base + '/dept/list',
    depart_crud: enter_api_base + '/dept',
    depart_user_list: enter_api_base + '/dept/findDeptMembersList',
    depart_user_remove: enter_api_base + '/dept/removeDeptMembers',
    depart_user_add: enter_api_base + '/dept/addNewDeptMembers',

    // 模板
    template_list: enter_api_base + '/collocation/templateList',
    template_getInfo: enter_api_base + '/collocation/getInfo',
    template_update: enter_api_base + '/collocation/update',
    metadata_list: enter_api_base + '/collocation/metadataPage',
    mould_tabs_list: enter_api_base + '/collocation/formList',
    mould_template_getData: enter_api_base + '/collocation/getTemplateData',
    mould_list_updateIsEnable: enter_api_base + '/collocation/updateIsEnable', // 编辑模板状态  首页用

    copy_templateCollocation: enter_api_base + '/collocation/copyTemplateCollocation', // 复制模板到 自己负责的企业
    copy_identifier: enter_api_base + '/identifier/copyIdentifier', // 复制编号到 自己负责的企业

    // 模板编号 规则列表
    rule_list: enter_api_base + '/identifier/page',
    rule_crud: enter_api_base + '/identifier',
    // 模板编号 编号列表
    number_list: enter_api_base + '/identifierCode/page',
    number_crud: enter_api_base + '/identifierCode',
    copy_number: enter_api_base + '/identifierCode/copyCode',
    change_sort: enter_api_base + '/identifierCode/updateSortBatch',
    // 模板编号 条件列表
    require_list: enter_api_base + '/identifierRule/page',
    require_crud: enter_api_base + '/identifierRule',

    // 项目
    enterprise_project_list: pro_api_base + '/page/enterprise',

    // 数字孪生
    // 项目
    szls_project_list: szls_pai_base + '/project/page',
    szls_project_crud: szls_pai_base + '/project',
    szls_project_restore: szls_pai_base + '/project/restoreProject',
    // 工程
    szls_engineering_list: szls_pai_base + '/engineering/page',
    szls_engineering_allList: szls_pai_base + '/engineering/list',
    szls_engineering_crud: szls_pai_base + '/engineering',
    szls_engineering_restore: szls_pai_base + '/engineering/restoreEngineering', // 还原
    szls_engineer_publish: szls_pai_base + '/engineering/publish', // 发布
    szls_engineer_cancel: szls_pai_base + '/engineering/cancel', // 取消发布
    szls_engineer_refresh: szls_pai_base + '/engineering/refresh', // 刷新工程
    szls_engineer_copy: szls_pai_base + '/engineering/copyEngineering',// 复制工程
    szls_engineer_sql: szls_pai_base + '/engineering/getEngineeringSql',// 下载工程 spl
    // 工程版本
    szls_engineeringVersion_list: szls_pai_base + '/engineeringVersion/page',
    szls_engineeringVersion_crud: szls_pai_base + '/engineeringVersion',
    szls_engineeringVersion_upload_baseMap: szls_pai_base + '/engineeringVersion/file/upload/model', // 上传 工程附件  版本附件
    szls_engineeringVersion_download_baseMap: szls_pai_base + '/engineeringVersion/model/download',

    // 短连接
    szls_engineeringShortUrl_page: szls_pai_base + '/engineeringShortUrl/page',
    szls_engineeringShortUrl_add: szls_pai_base + '/engineeringShortUrl/addEngineeringShortUrl',
    szls_engineeringShortUrl_update: szls_pai_base + '/engineeringShortUrl/updateEngineeringShortUrl',
    szls_engineeringShortUrl_crud: szls_pai_base + '/engineeringShortUrl',
    szls_engineeringShortUrl_disable: szls_pai_base + '/engineeringShortUrl/disable',
    szls_engineeringShortUrl_enable: szls_pai_base + '/engineeringShortUrl/enable',
    szls_engineeringShortUrl_dlj: szls_pai_base + '/engineeringShortUrl/dlj', // 解释用户信息
    // 视图
    szls_view_list: szls_pai_base + '/engineeringView/page',
    szls_view_crud: szls_pai_base + '/engineeringView',
    // 工程视图 可选元数据
    szls_engineeringMetadata_view_list: szls_pai_base + '/engineeringView/viewList',
    // 工程视图 可选设备
    szls_device_view_list: szls_pai_base + '/engineeringView/viewPage',
    // 设备
    szls_device_list: szls_pai_base + '/device/page',
    szls_device_crud: szls_pai_base + '/device',
    szls_device_restore: szls_pai_base + '/device/restoreDevice',
    szls_device_metadata_list: szls_pai_base + '/szlsDeviceMetadata/list',
    szls_device_metadata_crud: szls_pai_base + '/szlsDeviceMetadata',
    // 工序
    szls_process_list: szls_pai_base + '/process/page',
    szls_process_crud: szls_pai_base + '/process',
    szls_process_restore: szls_pai_base + '/process/restoreProcess',
    // 元数据 
    metadata_importExcel: szls_pai_base + '/engineeringMetadata/importExcel',
    szls_engineeringMetadata_list: szls_pai_base + '/engineeringMetadata/page',
    szls_engineeringMetadata_crud: szls_pai_base + '/engineeringMetadata',
    szls_engineeringMetadata_restore: szls_pai_base + '/engineeringMetadata/restoreEngineeringMetadata',
    szls_engineeringMetadata_baseList: szls_pai_base + '/engineeringMetadata/list', // 基础元数据列表

    // 型材
    // 标准件
    standardParts: enter_api_base + '/standardParts',
    // 组合元数据
    MetadataCombine: enter_api_base + '/productMetadataCombine',
    // 规格 
    profileIdentifier: enter_api_base + '/productIdentifier',
    // 编码
    profileIdentifierCode: enter_api_base + '/productIdentifierCode',
    // 条件
    profileIdentifierRule: enter_api_base + '/productIdentifierRule',
    //元数据
    profileMetadata: enter_api_base + '/productMetadata/productMetadataList',

    // 自定义表单
    // 列表
    form_list: '/bimai-out-api/out-api/form/formCustom/list',
    form_curd: '/bimai-out-api/out-api/form/formCustom',

    // 配置
    form_configForm: '/bimai-out-api/out-api/form/formCustom/configForm',
    form_configForm_info: '/bimai-out-api/out-api/form/formCustom/getFormConfig',

    // 保存自定义数据
    formData_curd: '/bimai-out-api/out-api/form/formData',
    formData_list: '/bimai-out-api/out-api/form/formData/page',
    formData_getData: '/bimai-out-api/out-api/form/formData/getData',


    // 任务管理
    // 项目列表
    tesk_list: pro_api_base + '/task/page',
    task_curd: pro_api_base + '/task',

    // 项目状态配置
    taskStatusConfig: pro_api_base + '/taskStatusConfig',
    // 项目编辑操作记录
    taskOprLog_list: pro_api_base + '/taskOprLog/list',

    // 我参与的项目
    myProjectTaskList: pro_api_base + '/task/myProjectTaskList',
    // 分配任务 
    confirmAssignments: pro_api_base + '/task/confirmAssignments',
    // 更新分配任务 
    updateAssignments: pro_api_base + '/task/updateAssignments',
    // 进度配置
    taskSetUpPlan: pro_api_base + '/task/plan',
    // 进度总览
    taskProcessPage: pro_api_base + '/task/taskProcessPage',
    // 项目下任务列表 
    assignTaskList: pro_api_base + '/task/assignTaskList',
    // 需求变更 
    taskChange: pro_api_base + '/taskChange',
    // 资料提交
    taskOrder: pro_api_base + '/taskOrder',

    // 我的任务
    myTaskPage: pro_api_base + '/task/myTaskPage',
    // 我的工时
    myWorkHours: pro_api_base + '/task/myTaskMemberRecordPage',
    // 开始 完成 记录工时
    recordMemberTask: pro_api_base + '/task/recordMemberTask',
    // 编辑额外工时
    editExtraWorkHour: pro_api_base + '/task/editExtraWorkHour',
    // 工时总表 分页
    taskMemberRecordPage: pro_api_base + '/task/taskMemberRecordPage',
    // 任务配置
    taskSetUp: pro_api_base + '/taskConfig',
    // 任务子任务配置
    taskSetUpNode: pro_api_base + '/taskConfig/node',
    // 任务权重配置
    taskWeightConfig: pro_api_base + '/taskWeightConfig',
    // 单价配置
    unitPriceConfig: pro_api_base + '/unitPriceConfig',
    // 项目资料配置
    projectInformation: pro_api_base + '/fileConfig',
    nodeConfig: pro_api_base + '/nodeConfig',

    // 服务企业
    serviceEnterpriseList: enter_api_base + '/enterprise/serviceEnterpriseList',
    serviceEnterprise_curd: enter_api_base + '/enterprise/serviceEnterprise',
    // 节点文件模板
    serviceEnterprise_fileConfigTemplate: pro_api_base + '/fileConfig/template',
    // 项目文件 （列表，上传，删除。。。）
    taskFile: pro_api_base + '/taskFile',
    // 错误率
    taskWrongRate: pro_api_base + '/taskWrongRate',
    // 周期奖罚
    taskCycleRewardDeduction: pro_api_base + '/taskCycleRewardDeduction',

    // 业绩管理
    // 我的提成
    myCommissionPage: pro_api_base + '/taskCommission/myCommissionPage',
    // 我的月度提成
    myMonthCommissionPage: pro_api_base + '/taskCommission/myMonthCommissionPage',

    // 所有员工提成列表
    commissionList: pro_api_base + '/taskCommission/commissionList',
    // 所有员工月度提成列表
    monthCommissionPage: pro_api_base + '/taskCommission/monthCommissionPage',
    // 项目提成汇总
    taskCommissionTotalPage: pro_api_base + '/task/taskCommissionTotalPage',
    // 奖罚
    taskRewardDeduction: pro_api_base + '/taskRewardDeduction',
    // 公司账单
    enterpriseBill: pro_api_base + '/enterpriseBill',

}
export default serviceApi